using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TerritoryDesignTools._TerritorySolution
{
    /// <summary>
    /// <para>Copy Territory Solution</para>
    /// <para>Creates a copy of a territory solution.</para>
    /// <para>创建区域解决方案的副本。</para>
    /// </summary>    
    [DisplayName("Copy Territory Solution")]
    public class CopyTerritorySolution : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CopyTerritorySolution()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_territory_solution">
        /// <para>Input Territory Solution</para>
        /// <para>The input territory solution.</para>
        /// <para>输入区域解决方案。</para>
        /// </param>
        /// <param name="_target_gdb">
        /// <para>Target Geodatabase</para>
        /// <para>The location of the output geodatabase.</para>
        /// <para>输出地理数据库的位置。</para>
        /// </param>
        /// <param name="_territory_solution_name">
        /// <para>Territory Solution Name</para>
        /// <para>The name of the copied territory solution</para>
        /// <para>复制的 territory 解决方案的名称</para>
        /// </param>
        public CopyTerritorySolution(object _in_territory_solution, object _target_gdb, object _territory_solution_name)
        {
            this._in_territory_solution = _in_territory_solution;
            this._target_gdb = _target_gdb;
            this._territory_solution_name = _territory_solution_name;
        }
        public override string ToolboxName => "Territory Design Tools";

        public override string ToolName => "Copy Territory Solution";

        public override string CallName => "td.CopyTerritorySolution";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_territory_solution, _target_gdb, _territory_solution_name, _out_territory_solution];

        /// <summary>
        /// <para>Input Territory Solution</para>
        /// <para>The input territory solution.</para>
        /// <para>输入区域解决方案。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_territory_solution { get; set; }


        /// <summary>
        /// <para>Target Geodatabase</para>
        /// <para>The location of the output geodatabase.</para>
        /// <para>输出地理数据库的位置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_gdb { get; set; }


        /// <summary>
        /// <para>Territory Solution Name</para>
        /// <para>The name of the copied territory solution</para>
        /// <para>复制的 territory 解决方案的名称</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Territory Solution Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _territory_solution_name { get; set; }


        /// <summary>
        /// <para>Out Territory Solution</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Out Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_territory_solution { get; set; }


        public CopyTerritorySolution SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}